﻿@model orienta.Models.ORIMaeDependencia

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ORIMaeDependencia</legend>

        @Html.HiddenFor(model => model.nIdeDep)

        <div class="editor-label">
            @Html.LabelFor(model => model.nIdeTipoDep, "ORIDetCompendio")
        </div>
        <div class="editor-field">
            @Html.DropDownList("nIdeTipoDep", String.Empty)
            @Html.ValidationMessageFor(model => model.nIdeTipoDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.vDescripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.vDescripcion)
            @Html.ValidationMessageFor(model => model.vDescripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nIdeDepRegion, "ORIMaeDependencia3")
        </div>
        <div class="editor-field">
            @Html.DropDownList("nIdeDepRegion", String.Empty)
            @Html.ValidationMessageFor(model => model.nIdeDepRegion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nIdeDepPadre, "ORIMaeDependencia2")
        </div>
        <div class="editor-field">
            @Html.DropDownList("nIdeDepPadre", String.Empty)
            @Html.ValidationMessageFor(model => model.nIdeDepPadre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nCodDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nCodDep)
            @Html.ValidationMessageFor(model => model.nCodDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.vSigDep)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.vSigDep)
            @Html.ValidationMessageFor(model => model.vSigDep)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.vBanSel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.vBanSel)
            @Html.ValidationMessageFor(model => model.vBanSel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dtFecIniVig)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dtFecIniVig)
            @Html.ValidationMessageFor(model => model.dtFecIniVig)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dtFecFinVig)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dtFecFinVig)
            @Html.ValidationMessageFor(model => model.dtFecFinVig)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dtFecReg)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dtFecReg)
            @Html.ValidationMessageFor(model => model.dtFecReg)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
